#pragma once

#include <stdio.h>

#define SIZE 4096

typedef struct _myFILE
{
    char outbuffer[SIZE];
    int pos;
    int cap;
    int fileno;
}myFILE;


myFILE *my_fopen(const char *pathname, const char *mode);
int my_fwrite(myFILE *fp, const char *s, int size);
void my_fclose(myFILE *fp);
